package com.linked.store.delivery.service.impl;

import com.linked.store.delivery.bean.po.DeliveryInfoPO;
import com.linked.store.delivery.mapper.IDeliveryInfoMapper;
import com.linked.store.delivery.service.IDeliveryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author :dbq
 * @date : 2023/7/3 13:07
 * @description : desc
 */
@Service
@Slf4j
public class DeliveryServiceImpl implements IDeliveryService {

    private final IDeliveryInfoMapper deliveryInfoMapper;

    public DeliveryServiceImpl(IDeliveryInfoMapper deliveryInfoMapper) {
        this.deliveryInfoMapper = deliveryInfoMapper;
    }

    @Override
    public boolean saveDelivery(DeliveryInfoPO param) {
        return deliveryInfoMapper.insert(param) > 0;
    }
}
